<?php
//print_r($model);exit;
$image = $model->getRelated('image');
$url = !empty($image)?$image[0]['path']:Yii::app()->baseUrl.'images/no-image.png';
?>
<div class="container blogpage">
	<div class="row">
	
		<div class="col-lg-12 blogpagecolumn" style="border: 0px solid #0e0d0d;">
			<img src="<?php echo Yii::app()->baseUrl.$url;?>" alt="picture" />
		</div>
	
	</div>
	
	<div class="row">
	
		<div class=" col-lg-12 blogpagetext">
			<div class="bloghomepagetextborder">
				<h3><?php echo ucfirst(trim($model['name']));?></h3>
				<p class="date"><?php echo date("d/m/Y", strtotime($model['updated_at']));?></p>
				<p>
				<?php echo trim($model['content']);?>
				</p>
			</div>
		</div>
	
	
	</div>
	<!--/row end-->
</div>
